package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {
    void saveOrUpdate(Permission permission);

    void delete(Long id);

    Permission selectOne(Long id);

    List<Permission> selectAll();

    //根据员工id获取对应权限
    List<String> queryExpByEid(Long id);

    PageInfo<Permission> queryPage(QueryObject qo);

    void reload();
}
